home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d13
/
stistics.arc
/
GEOMET.DOC
< prev
next >
Wrap
Text File
|
1988-07-24
|
2KB
|
54 lines
GEOMETRIC PROGRESSION
AIM
This program fits a geometric curve to a set of coordinates, using the
method of least squares. The equation, coefficient of determination,
coefficient of correlation and standard error of the estimate are printed.
EXAMPLE
The data shown below gives the pressure of a gas measured at various
volumes in an experiment. The relationship between pressure and volume of
gas is expressed by the equation:
K
PV = C
where P = pressure, V = volume, and C and K are constants. The formula
can be rewritten in standard geometric form, as follows:
-K
P = CV
Note that the exponent is negative, which accounts for the negative
exponent when this data is calculated by the program. The problem is to
fit a geometric curve to the data below, and to estimate the pressure of
90 cubic inches of the gas.
VOLUME PRESSURE
56.1 57.0
60.7 51.0
73.2 39.2
88.3 30.2
120.1 19.6
187.5 10.5
Note that the data may be entered from the keyboard, or from a data file
created in the non-document mode of WordStar. The format for a data file
is:
Test Data <== Title of up to 65 characters of any kind.
56.1 57 <== X value 1, one or more spaces, Y value 1
60.7 51 <== X value 2, one or more spaces, Y value 2
73.2 39.2 <== .
88.3 30.2 <== .
120.1 19.6 <== .
187.5 10.5 <== X value N, one or more spaces, Y value N
Data for interpolation must be entered via keyboard.
REFERENCE: Poole, L. and M. Borchers 1979 Some Common Basic Programs,
3rd ed. Osborne/McGraw-Hill, Berkeley, California.
BASIC VERSION: Dr. Stanley Kaplan Nov 84
PASCAL VERSION: Dr. Stanley Kaplan Feb 87 (Version 1.0)
UPDATES: Feb 88 (MS-DOS Version 2.0)